﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.ManagementConsole;
using Microsoft.ManagementConsole.Advanced;

namespace GroupMappedDiskSnapInExtension
{
    [SnapInSettings("{6326D4E0-9AA5-4964-8040-8430910FC26E}",
                     DisplayName = "Group mapped disks property sheet",
                     Description = "Adds a mapped disk property sheet to group settings"
                    )]
    [ExtendsNodeType("{bf967a9c-0de6-11d0-a285-00aa003049e2}")]
    public class Extension : PropertySheetExtension
    {
        public Extension()
        {
            this.SharedData.Add(new SharedDataItem("DsObjectNames"));
        }

        protected override void OnAddPropertyPages(PropertyPageCollection propertyPageCollection)
        {
            GroupPropertyPage propPage = new GroupPropertyPage(SharedData);
            propertyPageCollection.Add(propPage);
        }
    }
}
